////////////////////////////////////////////////////////////////////////////////
// Copyright 2007 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CATALOG_SECURITY
// AUTHOR           :   Saint Peng 
// DATE CREATE      :   2007/03/29
// DESCRIPTION      :   a VO file for the function, CATALOG_SECURITY
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2007/03/29   Saint Peng      1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.catalog.catalogSecurity.vo;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;

import com.erp.framework.model.vo.SimpleSearchMaintStyleVo;
import com.erp.framework.model.pk.SimpleSearchMaintStylePk;
import com.erp.app.catalog.catalogSecurity.pk.CatalogSecurityHdrPk;
import com.erp.framework.types.CustomBigDecimal;
import com.erp.framework.types.CustomBigInteger;
import com.erp.framework.types.CustomSqlDate;
import com.erp.framework.types.CustomTimestamp;
import com.erp.framework.types.CustomUtilDate;

/**
* <p>A <strong>VO</strong>(Value Object) is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this class is to store the data retrieved from the database,
* and the converted data from the web browsers.
*
* @author          Saint Peng 
* @version 1.0     2007/03/29
* @since           FrameWork 1.0
*
*/
public class CatalogSecurityHdrVo extends SimpleSearchMaintStyleVo {

	//DB Table Name: T_CATALOG_SECURITY_HDR

	//PK Attributes
	private String companyCode;                      //DB Column Name: COMPANY_CODE
	private String userCode;                         //DB Column Name: USER_CODE

	//Other Attributes
	private String hdrUserId;                        //DB Column Name: USER_ID
	private String hdrUserName;                      //DB Column Name: USER_NAME
	private String hdrUserGroupCode;                 //DB Column Name: USER_GROUP_CODE
	private CustomBigInteger hdrCatalogUserId;       //DB Column Name: CATALOG_USER_ID
	private String hdrLoginParty;
	private String hdrRoleGroupId;

	public String getHdrLoginParty() {
		return hdrLoginParty;
	}

	public void setHdrLoginParty(String hdrLoginParty) {
		this.hdrLoginParty = hdrLoginParty;
	}

	public String getHdrRoleGroupId() {
		return hdrRoleGroupId;
	}

	public void setHdrRoleGroupId(String hdrRoleGroupId) {
		this.hdrRoleGroupId = hdrRoleGroupId;
	}

	/**
	* Stores the detail child names by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected  void setChildTypesName() {
		this.childTypesName=new String[2];
		this.childTypesName[0]="com.erp.app.catalog.catalogSecurity.vo.CatalogSecurityDtlVo";
		this.childTypesName[1]="com.erp.app.catalog.catalogSecurity.vo.CatalogSecurityFieldVo";
//		this.childTypesName[2]="com.erp.app.catalog.catalogSecurity.vo.CatalogSecurityLightboxVo";
	}

	/**
	* Stores the table schema name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected void setTableSchemaName() {
		this.tableSchemaName="com.erp.app.catalog.catalogSecurity.schema.CatalogSecurityHdrSchema";
	}

	/**
	* Stores the detail child table schema names by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected  void setChildTableSchemaNames() {
		this.childTableSchemaNames=new String[2];
		this.childTableSchemaNames[0]="com.erp.app.catalog.catalogSecurity.schema.CatalogSecurityDtlSchema";
		this.childTableSchemaNames[1]="com.erp.app.catalog.catalogSecurity.schema.CatalogSecurityFieldSchema";
//		this.childTableSchemaNames[2]="com.erp.app.catalog.catalogSecurity.schema.CatalogSecurityLightboxSchema";
	}

	/**
	* Stores the DAO name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected void setDaoName() {
		this.daoName="com.erp.app.catalog.catalogSecurity.dao.CatalogSecurityHdrDao";
	}

	/**
	* Stores the biz logic name by the fully-qualified java class path.
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	protected void setBizLogicName() {
		this.bizLogicName = "com.erp.app.catalog.catalogSecurity.bizLogic.CatalogSecurityBizLogic";
	}

	/**
	* Returns the primary key for this class.
	* @return      primary key of this class
	*
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	public SimpleSearchMaintStylePk getSearchMaintStylePk() {
		return new CatalogSecurityHdrPk(this.companyCode, this.userCode);
	}

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Saint Peng 
	* @since      Framework 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode
			+ "\n, userCode = " + this.userCode + "}\n";

		String colStr = "COL: {hdrUserId = " + this.hdrUserId
			+ "\n, hdrUserName = " + this.hdrUserName
			+ "\n, hdrUserGroupCode = " + this.hdrUserGroupCode
			+ "\n, hdrCatalogUserId = " + this.hdrCatalogUserId + "}\n";

		return "CatalogSecurityHdrVo.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getUserCode() {
		return this.userCode;
	}

	public String getHdrUserId() {
		return this.hdrUserId;
	}

	public String getHdrUserName() {
		return this.hdrUserName;
	}

	public String getHdrUserGroupCode() {
		return this.hdrUserGroupCode;
	}

	public CustomBigInteger getHdrCatalogUserId() {
		return this.hdrCatalogUserId;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public void setHdrUserId(String hdrUserId) {
		this.hdrUserId = hdrUserId;
	}

	public void setHdrUserName(String hdrUserName) {
		this.hdrUserName = hdrUserName;
	}

	public void setHdrUserGroupCode(String hdrUserGroupCode) {
		this.hdrUserGroupCode = hdrUserGroupCode;
	}

	public void setHdrCatalogUserId(CustomBigInteger hdrCatalogUserId) {
		this.hdrCatalogUserId = hdrCatalogUserId;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}